package com.atguigu.spzx.manager.mapper;

import com.atguigu.spzx.model.entity.product.Category;
import com.atguigu.spzx.model.vo.product.CategoryExcelVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;


/**
 * 商品分类(Category)表数据库访问层
 *
 * @author makejava
 * @since 2024-03-19 23:10:55
 */
@Mapper
public interface CategoryMapper {

    List<Category> selectCategoryByParentId(Long id);

    int selectCountByParentId(Long id);

    List<Category> findAll();

    <T> void batchInsert(List<CategoryExcelVo> categoryList);
}
